package com.rephilo.email.service;

import com.rephilo.api.email.EmailSendService;
import org.apache.dubbo.config.annotation.Service;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;

@Service
public class EmailSendServiceImpl implements EmailSendService {
    private static final Logger logger = LoggerFactory.getLogger(EmailSendServiceImpl.class);

//    @Value("${spring.mail.username}")
//    private String from;

//    @Autowired
//    private JavaMailSender mailSender;

    /**
     * 发送HTML邮件的方法
     *
     * @param to
     * @param subject
     * @param content
     */
    @Override
    public void sendHtmlMail(String to, String subject, String content) {
        try {
            logger.info("发送邮件成功");
        } catch (Exception e) {

        }
    }
}
